<template>
	<view class="box">
		<u-navbar :is-back="true" :title="title" :border-bottom="false" :title-bold="true"></u-navbar>
		<view class="container_B">
			<mp-html :content="content"></mp-html>
			<!-- <u-parse :html="content"></u-parse> -->
		</view>
	</view>
	
</template>

<script>
	import { closeload, toastload } from '../../utils/common';
import {getStyem} from '@/api/user.js'
	export default {
		data() {
			return {
				title:"",
				content:""
			};
		},
		onLoad(res) {
			if(res.type==1){
				this.title = "商家入驻协议"
				toastload()
				getStyem('business_apply_rule',{}).then(res=>{
					console.log(res);
					closeload()
					this.content = res.data.detail
				})
			}
			if(res.type==2){
				toastload()
				this.title = "用户协议"
				getStyem('user_agreement',{}).then(res=>{
					closeload()
					this.content = res.data.detail
				})
			}
			if(res.type==3){
				toastload()
				this.title = "隐私政策"
				getStyem('privacy_policy',{}).then(res=>{
					closeload()
					this.content = res.data.detail
				})
			}
			if(res.type==4){
				this.title = "关于我们"
				getStyem('about',{}).then(res=>{
					closeload()
					this.content = res.data.detail
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
